<?php
/** require:
 *  __PHY_LIB
 */
require_once(__PHY_LIB . "/class/Item.class.php");

class OrderChangeLog extends Item {
/// definition and constructor ///
    function OrderChangeLog($id=0, $field="") {
        Query::Query();
        $this->cfgKeyField("id");
        $this->cfgAllField("id,order_id,action,time_changed,param,remark");
        $this->cfgTable("fnnc_order_changelog");
        if ("" == $field || "*" == $field) {
            $this->cfgField($this->mAllField);
        }
        else {
            $this->cfgField($field);
        }
        if (0 < $id) {
            $this->cfgWhere($this->mKeyField . "=" . $id);
            $this->load();
        }
        else {
            $this->set($this->mKeyField, $id);
        }
    }

    function invalid() {
        return false;
    }
} /// end class OrderChangLog.


class OrderChangeLogList extends ItemList {
    /// definition and constructor ///
    function OrderChangeLogList($tablename=null) {
        ItemList::ItemList();
        $this->cfgClass("OrderChangeLog");
        $this->cfgKeyField("id");
        $this->cfgAllField("id,order_id,action,time_changed,param,remark");
        $this->cfgTable(null == $tablename ? "fnnc_order_changelog" : $tablename);
    }

} /// end class OrderChangLogList.
?>
